import Vuex from "vuex"
import Vue from "vue"

Vue.use(Vuex)


const state = {
    //左侧菜单数据
    menuLists: [
        {
            path: "shouYe",
            title: "首页",
            children: [
                {
                    path: "/index/shouye/shouye",
                    title: "首页",
                },
                {
                    path: "/index/shouye/baoxiu",
                    title: "报修页面",
                }
                ,
                {
                    path: "/index/shouye/test",
                    title: "测试页面",
                }
            ]
        },
        {
            path: "baseInfo",
            title: "基础信息",
            children: [
                {
                    path: "/index/baseinfo/bishe/eleapp",
                    title: "电器信息",
                },
                {
                    path: "/index/baseinfo/bishe/house",
                    title: "房屋信息",
                },
                {
                    path: "/index/baseinfo/bishe/housetype",
                    title: "户型信息",
                },
                {
                    path: "/index/baseinfo/bishe/room",
                    title: "房间信息",
                },
                {
                    path: "/index/baseinfo/bishe/user",
                    title: "业主信息",
                }
            ]
        },
        {
            path: "devicegroup",
            title: "详情信息",
            children: [
                {
                    path: "/index/devicegroup/HousetypeInfo",
                    title: "户型详情",
                },
                {
                    path: "/index/devicegroup/RoomInfo",
                    title: "房间详情",
                },

            ]
        },
        {
            path: "system",
            title: "管理员信息",
            children: [
                {
                    path: "/index/admininfo/admin",
                    title: "管理员账户管理",
                }

            ]
        }
    ]
}

const Store = new Vuex.Store({
    state
})
export default Store
